package edu.del.teamknowledgebase.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 群组成员表：群组与用户的关联关系
 * @TableName chat_group_member
 */
@TableName(value ="chat_group_member")
@Data
public class ChatGroupMember implements Serializable {

    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 群组ID
     */
    private Long groupId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 
     */
    private Date joinTime;

    /**
     * 是否删除：0-未删除，1-已删除
     */
    private Integer isDeleted;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 6036976591675486113L;
}